#include "xmppcore/xmllangtext.h"

namespace yoohoo_xmppcore {

XmlLangText::XmlLangText(QString text, QString xmlLang) : _text(text), _xmlLang(xmlLang) {
}

void XmlLangText::setXmlLang(QString xmlLang) {
	_xmlLang = xmlLang;
}

QString XmlLangText::xmlLang() const {
	return _xmlLang;
}

void XmlLangText::setText(QString text) {
	_text = text;
}

QString XmlLangText::text() const {
	return _text;
}

bool XmlLangText::operator==(const XmlLangText& other) const {
	return (_xmlLang == other._xmlLang) && (_text == other._text);
}

bool XmlLangText::isNull() const {
	return _text.isEmpty();
}

}
